const search = {
  state: {
    text: '',
  },
  getters:{
    getText(state) {
      return state.text
    }
  },
  mutations: {
    setText: (state, text) => {
      state.text = text
    }
  },
  actions: {
    async resetText({ commit, state }, { text }) {
      commit('setText', text)
    }
  }
}

export default search